import request from '@/utiles/request'
// 获取车辆类型信息列表
export const truckTypeApi = () => {
  return request({
    method: 'GET',
    url: '/truckType/simple'
  })
}

// 获取车辆详情
export const getTruckApi = (id) => {
  return request({
    method: 'GET',
    url: `/truck/${id}`
  })
}
// 获取车辆分页数据
export const getTruckpageApi = (params) => {
  return request({
    method: 'GET',
    url: '/truck/page',
    params
  })
}
// 统计车辆
export const getCountApi = (params) => {
  return request({
    method: 'GET',
    url: '/count',
    params
  })
}
// 点击切换促发
// export const getTrucksApi = (id) => {
//   return request({
//     method: 'GET',
//     url: '/truck/page',
//     params: { workStatus: id }
//   })
// }
export const getTrucksApi = (params) => {
  return request({
    method: 'GET',
    url: '/truck/page',
    params
  })
}
// 获取车辆详情
export const getTruckDetailApi = (id) => {
  return request({
    method: 'GET',
    url: `/truck/${id}`
  })
}
// 获取行驶证信息
export const getTruckDetailApis = (id) => {
  return request({
    method: 'GET',
    url: `/truck/${id}/license`
  })
}
